<?php
$pass = '';
if(!empty($this->params['pass'])){
	$pass = $this->params['pass'][0];
}
$html->addCrumb('Admin','/admin/roles/');
$html->addCrumb('Rollen verwalten','/admin/roles/');
$html->addCrumb('Rolle ändern','/admin/roles/update/'.$pass,array('escape'=>false));

?>
<div class="title">Rolle ändern</div>

<?php echo $this->element('flashMessage') ?>

<div>

<?php
echo $this->Form->create(null,array('action'=>'update','class'=>'form'));

echo $this->Form->input('role_name', array('label' => 'Rollen-Name'));
echo $this->Form->input('description',  array('label' => 'Beschreibung*'));

echo $this->Form->input('state_id', array('label'=> 'Aktiv'));
echo '<div class="form_div_buttons">';
echo '<input type="submit" name="Speichern" value="Speichern">';
echo '<a href="'.URL_PREFIX.'/admin/roles/"><button>Abbrechen</button></a>';
echo '</div>';
echo $this->Form->end();

?>
</div>
